﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace View
{
    /// <summary>
    /// Interaction logic for AddNewInstanceWindow.xaml
    /// </summary>
    public partial class AddNewInstanceWindow : Window
    {
        private PatternManagementExtensionControl _patternExplorer;

        public AddNewInstanceWindow()
        {
            InitializeComponent();

            // get pattern types
            string patternTypesInStr = Properties.Resources.PatternTypes;

            // parse the pattern type str into arrays
            string[] patternTypes = patternTypesInStr.Split(Convert.ToChar(","));

            // populate the pattern types to the combox box
            cbxPatternType.ItemsSource = patternTypes;
        }

        public AddNewInstanceWindow(PatternManagementExtensionControl patternExplorer)
            : this()
        {
            _patternExplorer = patternExplorer;
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Not Implemented!");
        }

        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
